package com.serial.comm.modular.serialPort.enums;

/**
 * @description 响应码配置枚举
 */
public enum TelegramEnum {

    FAILED(0, "报文处理失败"),
    SUCCESS(1, "报文处理成功"),
    READ(0, "已读取报文"),
    WRITE(1, "已写入报文");



    private Integer code;
    private String message;

    TelegramEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public final Integer getCode() {
        return this.code;
    }

    public final String getMessage() {
        return this.message;
    }

}
